<?php
defined('IN_MAIN') or exit('Invalid Access!');

function get_matrix_slot($id){
 global $vars;
 $db=$vars['db'];
 $rs=mysql_query("select * from $db->users where matrix_upline='$id'");
 if($rs && mysql_num_rows($rs)){
  for($i=0;$i<mysql_num_rows($rs);$i++){
   $member=mysql_fetch_assoc($rs);
   $r_slot[$member['matrix_position']] = $member;
  }
 }
 return $r_slot;
}
?>